<div class="member box">

{$this->data['noticestr']}

<h3>hyperlink list</h3>
{$this->data['pagination']}
<table class="list boards">
	<thead>
		<tr>
			<th>linkid</th>
			<th>modtime</th>
			<th>title</th>
			<th>abstract</th>
			<th>category</th>
			<th>urlstr</th>
			<th>status</th>
			<th>opr</th>
		</tr>
	</thead>
	<tbody>

<!--{loop $this->data['queryre'] $data}-->
		<tr class='old'>
			<td>{$data['linkid']}</td>
			<td>{$data['itime']}</td>
			<td>{$data['title']}</td>
			<td>{$data['abstract']}</td>
			<td>{$data['cattags']}</td>
			<td>{$data['urlstr']}</td>
			<td>{$data['status']}</td>
			<td>
				<a href='javascript:doDelConfirm({$data['linkid']}, "{url('manage', 'DoDeleteHyperlink', array('linkid'=>$data['linkid']))}")'>[delete]</a>&nbsp;&nbsp;
				<a href='{url('manage', 'DoEditHyperlink', array('linkid'=>$data['linkid']))}'>[edit]</a>
			</td>
		</tr>
<!--{/loop}-->
	</tbody>
</table>
{$this->data['pagination']}
</div>

<div class="member box">
	<h3>hyperlink add</h3>
	<form action="{url('manage', 'DoAddHyperlink')}" method="post" id='customeradd' onsubmit="return doAddSubmit();">
		标题: <input name="postdata[title]" type="text" size="80" maxlength="200" />*<br>
		摘要: <input name="postdata[abstract]" type="text" size="80" value=''/><br>
		url: <input name="postdata[urlstr]" type="text" size="80" value=''/>*<br>
		类别: 
<!--{loop ConstValues::$categorys $catid $catstr}-->
			<input name="postdata[cat][{$catid}]" type='checkbox'>{$catstr}
<!--{/loop}-->
		<br>
		状态: <input name="postdata[status]" type="text" size="80" maxlength="4" value='0'/>*<br>
		<input type='submit' value="添加">
	</form>
</div>

<script type="text/javascript">
function doDelConfirm(linkid, delurl)
{
	if(confirm("确定删除hyperlink "+linkid+"?"))
	{
		location = delurl;
	}
}

function doAddSubmit()
{
	return confirm("确定添加?");
}
</script>
